package com.stars.entity.system;


import com.stars.common.base.entity.BaseCompanyEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
/**
 * @Title: 公司组织架构实体
 * @author dj
 * @date 2019-10-12 16:15:41
 * @version V1.0
 *
 */
@Data
@Table(name = "SYS_ORG")
@EqualsAndHashCode(callSuper = false)
public class SysOrgEntity extends BaseCompanyEntity{

	/**组织名称*/
    @Column(name = "ORG_NAME")
    @ApiModelProperty(value = "组织名称",name ="orgName")
	private String orgName;
	/**组织类型*/
    @Column(name = "ORG_TYPE")
    @ApiModelProperty(value = "组织类型",name ="orgType")
	private String orgType;
	/**组织编号*/
    @Column(name = "ORG_CODE")
    @ApiModelProperty(value = "组织编号",name ="orgCode")
	private String orgCode;
	/**组织英文名称*/
    @Column(name = "ORG_EN")
    @ApiModelProperty(value = "组织英文名称",name ="orgEn")
	private String orgEn;
	/**描述*/
    @ApiModelProperty(value = "描述",name ="info")
	private String info;
	/**父ID*/
    @ApiModelProperty(value = "父ID",name ="pid")
	private String pid;
	/**层级*/
    @ApiModelProperty(value = "层级",name ="layer")
	private Integer layer;
	/**排序号*/
    @Column(name = "SORT_NUM")
    @ApiModelProperty(value = "排序号",name ="sortNum")
	private Integer sortNum;


}